package com.ruoyi.secondvitim.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.secondvitim.mapper.VitimNurseMapper;
import com.ruoyi.secondvitim.domain.VitimNurse;
import com.ruoyi.secondvitim.service.IVitimNurseService;

/**
 * 护士列表Service业务层处理
 * 
 * @author alonso_ecit
 * @date 2025-11-14
 */
@Service
public class VitimNurseServiceImpl implements IVitimNurseService 
{
    @Autowired
    private VitimNurseMapper vitimNurseMapper;

    /**
     * 查询护士列表
     * 
     * @param nurseNo 护士列表主键
     * @return 护士列表
     */
    @Override
    public VitimNurse selectVitimNurseByNurseNo(String nurseNo)
    {
        return vitimNurseMapper.selectVitimNurseByNurseNo(nurseNo);
    }

    /**
     * 查询护士列表列表
     * 
     * @param vitimNurse 护士列表
     * @return 护士列表
     */
    @Override
    public List<VitimNurse> selectVitimNurseList(VitimNurse vitimNurse)
    {
        return vitimNurseMapper.selectVitimNurseList(vitimNurse);
    }

    /**
     * 新增护士列表
     * 
     * @param vitimNurse 护士列表
     * @return 结果
     */
    @Override
    public int insertVitimNurse(VitimNurse vitimNurse)
    {
        vitimNurse.setCreateTime(DateUtils.getNowDate());
        return vitimNurseMapper.insertVitimNurse(vitimNurse);
    }

    /**
     * 修改护士列表
     * 
     * @param vitimNurse 护士列表
     * @return 结果
     */
    @Override
    public int updateVitimNurse(VitimNurse vitimNurse)
    {
        vitimNurse.setUpdateTime(DateUtils.getNowDate());
        return vitimNurseMapper.updateVitimNurse(vitimNurse);
    }

    /**
     * 批量删除护士列表
     * 
     * @param nurseNos 需要删除的护士列表主键
     * @return 结果
     */
    @Override
    public int deleteVitimNurseByNurseNos(String[] nurseNos)
    {
        return vitimNurseMapper.deleteVitimNurseByNurseNos(nurseNos);
    }

    /**
     * 删除护士列表信息
     * 
     * @param nurseNo 护士列表主键
     * @return 结果
     */
    @Override
    public int deleteVitimNurseByNurseNo(String nurseNo)
    {
        return vitimNurseMapper.deleteVitimNurseByNurseNo(nurseNo);
    }
}
